Trait cni_plugin::reply::ReplyPayload[][src]

pub trait ReplyPayload<'de>: Debug + Serialize + Deserialize<'de> {
    fn code(&self) -> i32 { ... }
}

Trait for a reply type to be handled by the reply() function.

This is mostly internal, but may be used if you want to output your own reply types for some reason.

Provided methods

fn code(&self) -> i32[src]

The exit code to be set when replying with this type.

Defaults to 0 (success).

Loading content...

Implementors

impl<'de> ReplyPayload<'de> for ErrorReply<'de>[src]

fn code(&self) -> i32[src]

Sets the exit status of the process to the code of the error reply.

impl<'de> ReplyPayload<'de> for IpamSuccessReply[src]

impl<'de> ReplyPayload<'de> for SuccessReply[src]

impl<'de> ReplyPayload<'de> for VersionReply[src]

Loading content...