Skip to content

Commit

Permalink
Display InvalidType in decode error (#273)
Browse files Browse the repository at this point in the history
* show invalid type info in decode error

* show invalid type info in decode error
  • Loading branch information
minghuaw committed Aug 6, 2024
1 parent ed97726 commit eb65234
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
2 changes: 1 addition & 1 deletion fe2o3-amqp-management/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub enum Error {
StatusCodeNotFound,

/// Error with decoding from message
#[error("Error decoding from message")]
#[error("Decode error: {:?}", .0)]
DecodeError(Option<InvalidType>),

/// Status code is different from expected
Expand Down
26 changes: 0 additions & 26 deletions fe2o3-amqp-management/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,6 @@ pub use client::MgmtClient;
pub use request::Request;
pub use response::Response;

// pub trait ManageableEntityAttributes {
// /// A case-sensitive string identifying the entity. It MUST be unique within the Management Node
// /// through which it is accessed. It MAY change during its lifetime. When a new Manageable
// /// Entity is created the name MUST be supplied via the CREATE operation.
// fn entity_name(&self) -> &str;

// /// A case-sensitive string identifying the entity. It MUST be unique within the Management Node
// /// through which it is accessed. It MAY change during its lifetime. When a new Manageable
// /// Entity is created the name MUST be supplied via the CREATE operation.
// fn set_entity_name(&mut self);

// /// An immutable, case-sensitive string identifying the entity. When a new Manageable Entity is
// /// created the identity is not supplied by via the CREATE operation, rather the identity is
// /// generated by the system under management. The identity MUST be unique within the Management
// /// Node through which it is accessed (and within a given implementation may be guaranteed to be
// /// unique within a larger domain).
// fn entity_identity(&self) -> &str;

// /// A case-sensitive string identifying the Manageable Entity Type for the entity.
// fn entity_type(&self) -> &str;
// }

// pub trait TypeAnnotation {}

// pub trait ManagementNode {}

#[cfg(test)]
mod tests {
#[test]
Expand Down

0 comments on commit eb65234

Please sign in to comment.