pub enum FieldMut<'a, T: HasView<V>, V> {
Repr(&'a mut T),
Raw(&'a mut <T as HasView<V>>::ViewType),
}Expand description
An equivalent to Header for header fields which are accessed by
mutable reference.
Variants§
Repr(&'a mut T)
Mutable reference to the owned representation of a field.
Raw(&'a mut <T as HasView<V>>::ViewType)
Mutable reference to a field in a borrowed header, which may be owned or borrowed depdendent on past modifications.
Trait Implementations§
Source§impl<T: HasView<V, ViewType = Q> + AsMut<[u8]>, V, Q: AsMut<[u8]>> AsMut<[u8]> for FieldMut<'_, T, V>
impl<T: HasView<V, ViewType = Q> + AsMut<[u8]>, V, Q: AsMut<[u8]>> AsMut<[u8]> for FieldMut<'_, T, V>
Source§impl<T: HasView<V, ViewType = Q> + AsRef<[u8]>, V, Q: AsRef<[u8]>> AsRef<[u8]> for FieldMut<'_, T, V>
impl<T: HasView<V, ViewType = Q> + AsRef<[u8]>, V, Q: AsRef<[u8]>> AsRef<[u8]> for FieldMut<'_, T, V>
Source§impl<'a, T: HasView<V>, V> From<&'a mut BoxedHeader<T, <T as HasView<V>>::ViewType>> for FieldMut<'a, T, V>
Available on crate feature alloc only.
impl<'a, T: HasView<V>, V> From<&'a mut BoxedHeader<T, <T as HasView<V>>::ViewType>> for FieldMut<'a, T, V>
Available on crate feature
alloc only.Source§impl<'a, T: HasView<V>, V> From<&'a mut InlineHeader<T, <T as HasView<V>>::ViewType>> for FieldMut<'a, T, V>
impl<'a, T: HasView<V>, V> From<&'a mut InlineHeader<T, <T as HasView<V>>::ViewType>> for FieldMut<'a, T, V>
Source§impl<T: HeaderLen + HasView<V>, V> HeaderLen for FieldMut<'_, T, V>
impl<T: HeaderLen + HasView<V>, V> HeaderLen for FieldMut<'_, T, V>
Source§const MINIMUM_LENGTH: usize = T::MINIMUM_LENGTH
const MINIMUM_LENGTH: usize = T::MINIMUM_LENGTH
The minimum number of bytes a packet of this kind occupies
when serialised.
Source§fn packet_length(&self) -> usize
fn packet_length(&self) -> usize
The number of bytes which this packet would occupy when serialised. Read more
Source§impl<T: HasView<V, ViewType = Q> + NextLayer, V, Q> NextLayer for FieldMut<'_, T, V>
impl<T: HasView<V, ViewType = Q> + NextLayer, V, Q> NextLayer for FieldMut<'_, T, V>
Auto Trait Implementations§
impl<'a, T, V> Freeze for FieldMut<'a, T, V>
impl<'a, T, V> RefUnwindSafe for FieldMut<'a, T, V>
impl<'a, T, V> Send for FieldMut<'a, T, V>
impl<'a, T, V> Sync for FieldMut<'a, T, V>
impl<'a, T, V> Unpin for FieldMut<'a, T, V>
impl<'a, T, V> !UnwindSafe for FieldMut<'a, T, V>
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