pub enum Greeting {
Named,
Silent,
}Expand description
Whether opening a session should say hello first.
Variants§
Named
Ask the device its name, so the prompt is something a person recognizes and an unreachable node is reported now rather than by whatever they type first. One exchange.
Silent
Say nothing. The key is the label, and the command the caller came for is the first thing on the air.
Trait Implementations§
impl Copy for Greeting
impl Eq for Greeting
impl StructuralPartialEq for Greeting
Auto Trait Implementations§
impl Freeze for Greeting
impl RefUnwindSafe for Greeting
impl Send for Greeting
impl Sync for Greeting
impl Unpin for Greeting
impl UnwindSafe for Greeting
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)