pub struct Discovery {
pub router: Eui,
}Expand description
What a station asks the discovery endpoint, naming itself.
Fields§
§router: EuiThe station asking.
Implementations§
Source§impl Discovery
impl Discovery
Sourcepub fn from_json(body: &[u8]) -> Result<Discovery, ProtocolError>
pub fn from_json(body: &[u8]) -> Result<Discovery, ProtocolError>
Reads a discovery request, as a server does.
§Arguments
body- the request body.
§Returns
The request.
§Errors
Returns ProtocolError::Payload when the body is not this request.
Trait Implementations§
impl Copy for Discovery
impl Eq for Discovery
impl StructuralPartialEq for Discovery
Auto Trait Implementations§
impl Freeze for Discovery
impl RefUnwindSafe for Discovery
impl Send for Discovery
impl Sync for Discovery
impl Unpin for Discovery
impl UnsafeUnpin for Discovery
impl UnwindSafe for Discovery
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