Struct zenoh_codec::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 copy 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,

§

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,

§

type Error = DidntRead

source§

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

source§

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

§

type Error = DidntRead

source§

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

source§

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

§

type Error = DidntRead

source§

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

source§

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

§

type Error = DidntRead

source§

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

source§

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

§

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,

§

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,

§

type Error = DidntRead

source§

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

source§

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

§

type Error = DidntRead

source§

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

source§

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

§

type Error = DidntRead

source§

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

source§

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

§

type Error = DidntRead

source§

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

source§

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

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

type Error = DidntRead

source§

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

source§

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

§

type Error = DidntRead

source§

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

source§

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

§

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,

§

type Error = DidntRead

source§

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

source§

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

§

type Error = DidntRead

source§

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

source§

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

§

type Error = DidntRead

source§

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

source§

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

§

type Error = DidntRead

source§

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

source§

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

source§

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

§

type Error = DidntRead

source§

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

source§

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

§

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,

§

type Error = DidntRead

source§

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

source§

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

§

type Error = DidntRead

source§

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

source§

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

§

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,

§

type Error = DidntRead

source§

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

source§

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

§

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,

§

type Error = DidntRead

source§

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

source§

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

§

type Error = DidntRead

source§

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

source§

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

§

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,

§

type Error = DidntRead

source§

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

source§

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

§

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,

§

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,

§

type Error = DidntRead

source§

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

source§

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

§

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,

§

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,

§

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,

§

type Error = DidntRead

source§

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

source§

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

§

type Error = DidntRead

source§

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

source§

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

§

type Error = DidntRead

source§

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

source§

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

§

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,

§

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,

§

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,

§

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,

§

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,

§

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,

§

type Error = DidntRead

source§

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

source§

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

§

type Error = DidntRead

source§

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

source§

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

source§

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

§

type Error = DidntRead

source§

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

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,

§

type Error = DidntRead

source§

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

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> 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> ToOwned for T
where T: Clone,

§

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>,

§

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>,

§

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