#[non_exhaustive]pub enum SsdpKind {
Notify,
MSearch,
Response,
}Available on crate feature
ssdp only.Expand description
SSDP message kind. The three are textually distinct on the request line so the parser disambiguates without additional input.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Notify
NOTIFY * HTTP/1.1 — device-side advertisement
broadcast on the multicast group.
MSearch
M-SEARCH * HTTP/1.1 — client-side query.
Response
HTTP/1.1 200 OK — unicast response to an M-SEARCH.
Implementations§
Trait Implementations§
impl Copy for SsdpKind
Source§impl<'de> Deserialize<'de> for SsdpKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SsdpKind
Available on crate feature
serde only.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
impl Eq for SsdpKind
impl StructuralPartialEq for SsdpKind
Auto Trait Implementations§
impl Freeze for SsdpKind
impl RefUnwindSafe for SsdpKind
impl Send for SsdpKind
impl Sync for SsdpKind
impl Unpin for SsdpKind
impl UnsafeUnpin for SsdpKind
impl UnwindSafe for SsdpKind
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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