Zenoh080Header

Struct Zenoh080Header 

Source
pub struct Zenoh080Header {
    pub header: u8,
    pub codec: Zenoh080,
}

Fields§

§header: u8§codec: Zenoh080

Implementations§

Source§

impl Zenoh080Header

Source

pub const fn new(header: u8) -> Self

Trait Implementations§

Source§

impl Clone for Zenoh080Header

Source§

fn clone(&self) -> Zenoh080Header

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<R, const ID: u8> RCodec<(AttachmentType<ID>, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<(AttachmentType<ID>, bool), Self::Error>

Source§

impl<R> RCodec<(Box<[PrioritySn; 8]>, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<(QoSType, bool), Self::Error>

Source§

impl<R, const ID: u8> RCodec<(EntityGlobalIdType<ID>, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read( self, reader: &mut R, ) -> Result<(EntityGlobalIdType<ID>, bool), Self::Error>

Source§

impl<R, const ID: u8> RCodec<(NodeIdType<ID>, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<(NodeIdType<ID>, bool), Self::Error>

Source§

impl<R, const ID: u8> RCodec<(PatchType<ID>, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<(PatchType<ID>, bool), Self::Error>

Source§

impl<R, const ID: u8> RCodec<(QoSType<ID>, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<(QoSType<ID>, bool), Self::Error>

Source§

impl<R, const ID: u8> RCodec<(QoSType<ID>, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<(QoSType<ID>, bool), Self::Error>

Source§

impl<R> RCodec<(QueryTarget, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<(QueryTarget, bool), Self::Error>

Source§

impl<R> RCodec<(QueryableInfoType, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

impl<R, const ID: u8> RCodec<(SourceInfoType<ID>, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<(SourceInfoType<ID>, bool), Self::Error>

Source§

impl<R, const ID: u8> RCodec<(TimestampType<ID>, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<(TimestampType<ID>, bool), Self::Error>

Source§

impl<R, const VID: u8, const SID: u8> RCodec<(ValueType<VID, SID>, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read( self, reader: &mut R, ) -> Result<(ValueType<VID, SID>, bool), Self::Error>

Source§

impl<R> RCodec<(WireExprType, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<(WireExprType, bool), Self::Error>

Source§

impl<const ID: u8, R> RCodec<(ZExtUnit<ID>, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, _reader: &mut R) -> Result<(ZExtUnit<ID>, bool), Self::Error>

Source§

impl<R> RCodec<(ZExtUnknown, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<(ZExtUnknown, bool), Self::Error>

Source§

impl<const ID: u8, R> RCodec<(ZExtZ64<ID>, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<(ZExtZ64<ID>, bool), Self::Error>

Source§

impl<const ID: u8, R> RCodec<(ZExtZBuf<ID>, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<(ZExtZBuf<ID>, bool), Self::Error>

Source§

impl<const ID: u8, R> RCodec<(ZExtZBufHeader<ID>, bool), &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<(ZExtZBufHeader<ID>, bool), Self::Error>

Source§

impl<R> RCodec<Close, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Close, Self::Error>

Source§

impl<R> RCodec<Declare, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Declare, Self::Error>

Source§

impl<R> RCodec<DeclareFinal, &mut R> for Zenoh080Header
where R: Reader,

Source§

impl<R> RCodec<DeclareKeyExpr, &mut R> for Zenoh080Header
where R: Reader,

Source§

impl<R> RCodec<DeclareQueryable, &mut R> for Zenoh080Header
where R: Reader,

Source§

impl<R> RCodec<DeclareSubscriber, &mut R> for Zenoh080Header
where R: Reader,

Source§

impl<R> RCodec<DeclareToken, &mut R> for Zenoh080Header
where R: Reader,

Source§

impl<R> RCodec<Del, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Del, Self::Error>

Source§

impl<R> RCodec<Err, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Err, Self::Error>

Source§

impl<R> RCodec<Fragment, &mut R> for Zenoh080Header

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Fragment, Self::Error>

Source§

impl<R> RCodec<FragmentHeader, &mut R> for Zenoh080Header
where R: Reader,

Source§

impl<R> RCodec<Frame, &mut R> for Zenoh080Header

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Frame, Self::Error>

Source§

impl<R> RCodec<FrameHeader, &mut R> for Zenoh080Header
where R: Reader,

Source§

impl<R> RCodec<HelloProto, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<HelloProto, Self::Error>

Source§

impl<R> RCodec<InitAck, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<InitAck, Self::Error>

Source§

impl<R> RCodec<InitSyn, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<InitSyn, Self::Error>

Source§

impl<R> RCodec<Interest, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Interest, Self::Error>

Source§

impl<R> RCodec<Join, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Join, Self::Error>

Source§

impl<R> RCodec<KeepAlive, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<KeepAlive, Self::Error>

Source§

impl<R> RCodec<NetworkMessage, &mut R> for Zenoh080Header
where R: Reader,

Source§

impl<R> RCodec<Oam, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Oam, Self::Error>

Source§

impl<R> RCodec<Oam, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Oam, Self::Error>

Source§

impl<R> RCodec<OpenAck, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<OpenAck, Self::Error>

Source§

impl<R> RCodec<OpenSyn, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<OpenSyn, Self::Error>

Source§

impl<R> RCodec<Push, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Push, Self::Error>

Source§

impl<R> RCodec<Put, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Put, Self::Error>

Source§

impl<R> RCodec<Query, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Query, Self::Error>

Source§

impl<R> RCodec<Reply, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Reply, Self::Error>

Source§

impl<R> RCodec<Request, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Request, Self::Error>

Source§

impl<R> RCodec<Response, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Response, Self::Error>

Source§

impl<R> RCodec<ResponseFinal, &mut R> for Zenoh080Header
where R: Reader,

Source§

impl<R> RCodec<Scout, &mut R> for Zenoh080Header
where R: Reader,

Source§

type Error = DidntRead

Source§

fn read(self, reader: &mut R) -> Result<Scout, Self::Error>

Source§

impl<R> RCodec<UndeclareKeyExpr, &mut R> for Zenoh080Header
where R: Reader,

Source§

impl<R> RCodec<UndeclareQueryable, &mut R> for Zenoh080Header
where R: Reader,

Source§

impl<R> RCodec<UndeclareSubscriber, &mut R> for Zenoh080Header
where R: Reader,

Source§

impl<R> RCodec<UndeclareToken, &mut R> for Zenoh080Header
where R: Reader,

Source§

impl Copy for Zenoh080Header

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsNode<T> for T

Source§

fn as_node(&self) -> &T

Source§

impl<T> AsNodeMut<T> for T

Source§

fn as_node_mut(&mut self) -> &mut T

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more