#[repr(i32)]pub enum StatusCode {
SuccessCompleted = 0,
ObjectNotFound = 1,
PortNameNotSpecified = 2,
UnitNotSpecified = 3,
FamilyNotSpecified = 4,
IpAddrNotSpecified = 5,
ArpAddrNotSpecified = 6,
ArpMacNotSpecified = 7,
InterfaceObjectMismatch = 8,
}junos-19-1 only.Expand description
[brief]: Possible status codes for GET RPC operations [detail]: This enum defines the different status codes that could be returned from the backend service processing the API [default]: SUCCESS_COMPLETED
Variants§
SuccessCompleted = 0
[brief]: Operation Completed Succesfully
ObjectNotFound = 1
[brief]: Specified interface object is not found [detail]: This error code is returned when the interface object is not configured
PortNameNotSpecified = 2
[brief]: Port name is not specified for the object [detail]: This error code is returned when the config message does not speicfy the port name.
UnitNotSpecified = 3
[brief]: unit number is not specified for the object [detail]: This error code is returned when the config message does not specify the unit number for the object.
FamilyNotSpecified = 4
[brief]: Family is not specified for the object [detail]: This error code is returned when the config message does not contain the family specified.
IpAddrNotSpecified = 5
[brief]: IP Address is not specified for the object [detail]: This error code is returned when the connfig message does not contain the IP address specified.
ArpAddrNotSpecified = 6
[brief]: ARP/NDP Address is not specified for the object [detail]: This error code is returned when the config message does not contain the ARP/NDP address specified.
ArpMacNotSpecified = 7
[brief]: ARP/NDP MAC Address is not specified for the object [detail]: This error code is returned when the config message does not contain the ARP/NDP MAC address specified.
InterfaceObjectMismatch = 8
[brief]: Interface type specified details sent are not matching. [detail]: This happens when the interface type specified at the message level is different from the actual object information that is sent as part of the message, Eg: Specifying “Interface Unit” at message level and sending an “Interface Address” object in the message.
Implementations§
Source§impl StatusCode
impl StatusCode
Source§impl StatusCode
impl StatusCode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for StatusCode
impl Clone for StatusCode
Source§fn clone(&self) -> StatusCode
fn clone(&self) -> StatusCode
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StatusCode
impl Debug for StatusCode
Source§impl Default for StatusCode
impl Default for StatusCode
Source§fn default() -> StatusCode
fn default() -> StatusCode
Source§impl From<StatusCode> for i32
impl From<StatusCode> for i32
Source§fn from(value: StatusCode) -> i32
fn from(value: StatusCode) -> i32
Source§impl Hash for StatusCode
impl Hash for StatusCode
Source§impl Ord for StatusCode
impl Ord for StatusCode
Source§fn cmp(&self, other: &StatusCode) -> Ordering
fn cmp(&self, other: &StatusCode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for StatusCode
impl PartialEq for StatusCode
Source§impl PartialOrd for StatusCode
impl PartialOrd for StatusCode
impl Copy for StatusCode
impl Eq for StatusCode
impl StructuralPartialEq for StatusCode
Auto Trait Implementations§
impl Freeze for StatusCode
impl RefUnwindSafe for StatusCode
impl Send for StatusCode
impl Sync for StatusCode
impl Unpin for StatusCode
impl UnwindSafe for StatusCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request