pub struct OpSetDo<'r> { /* private fields */ }Available on crate feature
net-shaper only.Expand description
Create or update the specified shaper. The set operation can't be used to create a @node scope shaper, use the @group operation instead.
Flags: admin-perm
Request attributes:
Implementations§
Source§impl<'r> OpSetDo<'r>
impl<'r> OpSetDo<'r>
pub fn new(request: Request<'r>) -> Self
pub fn encode_request<'buf>( buf: &'buf mut Vec<u8>, ) -> PushNetShaper<&'buf mut Vec<u8>>
pub fn encode(&mut self) -> PushNetShaper<&mut Vec<u8>>
pub fn into_encoder(self) -> PushNetShaper<RequestBuf<'r>>
pub fn decode_request<'a>(buf: &'a [u8]) -> IterableNetShaper<'a> ⓘ
Trait Implementations§
Source§impl NetlinkRequest for OpSetDo<'_>
impl NetlinkRequest for OpSetDo<'_>
type ReplyType<'buf> = IterableNetShaper<'buf>
fn decode_reply<'buf>(buf: &'buf [u8]) -> Self::ReplyType<'buf>
Auto Trait Implementations§
impl<'r> !UnwindSafe for OpSetDo<'r>
impl<'r> Freeze for OpSetDo<'r>
impl<'r> RefUnwindSafe for OpSetDo<'r>
impl<'r> Send for OpSetDo<'r>
impl<'r> Sync for OpSetDo<'r>
impl<'r> Unpin for OpSetDo<'r>
impl<'r> UnsafeUnpin for OpSetDo<'r>
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