pub struct Hello { /* private fields */ }Expand description
<hello> advertisement (RFC6241 8.1).
Hello::new advertises :base:1.0 and :base:1.1.
Implementations§
Source§impl Hello
impl Hello
Sourcepub fn capabilities(&self) -> Vec<String>
pub fn capabilities(&self) -> Vec<String>
Capability URNs advertised in this hello.
Sourcepub fn has_capability(&self, capability: &str) -> bool
pub fn has_capability(&self, capability: &str) -> bool
True if capability was advertised, ignoring any ?query parameters.
Sourcepub fn session_id(&self) -> Option<u64>
pub fn session_id(&self) -> Option<u64>
Server-assigned session-id, present only on the server hello.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hello
impl<'de> Deserialize<'de> for Hello
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Hello
impl RefUnwindSafe for Hello
impl Send for Hello
impl Sync for Hello
impl Unpin for Hello
impl UnsafeUnpin for Hello
impl UnwindSafe for Hello
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more