pub struct MockLocalUriProvider { /* private fields */ }
Expand description
A factory for URIs representing this uEntity’s resources.
Implementations may use arbitrary mechanisms to determine the information that is necessary for creating URIs, e.g. environment variables, configuration files etc.
Implementations§
Source§impl MockLocalUriProvider
impl MockLocalUriProvider
Sourcepub fn checkpoint(&mut self)
pub fn checkpoint(&mut self)
Validate that all current expectations for all methods have been satisfied, and discard them.
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new mock object with no expectations.
This method will not be generated if the real struct
already has a new
method. However, it will be
generated if the struct implements a trait with a new
method. The trait’s new
method can still be called
like <MockX as TraitY>::new
Source§impl MockLocalUriProvider
impl MockLocalUriProvider
Create an Expectation
for mocking the get_authority
method
Sourcepub fn expect_get_resource_uri(&mut self) -> &mut Expectation
pub fn expect_get_resource_uri(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_resource_uri
method
Sourcepub fn expect_get_source_uri(&mut self) -> &mut Expectation
pub fn expect_get_source_uri(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_source_uri
method
Trait Implementations§
Source§impl Debug for MockLocalUriProvider
impl Debug for MockLocalUriProvider
Source§impl Default for MockLocalUriProvider
impl Default for MockLocalUriProvider
Source§impl LocalUriProvider for MockLocalUriProvider
A factory for URIs representing this uEntity’s resources.
impl LocalUriProvider for MockLocalUriProvider
A factory for URIs representing this uEntity’s resources.
Implementations may use arbitrary mechanisms to determine the information that is necessary for creating URIs, e.g. environment variables, configuration files etc.
Gets the authority used for URIs representing this uEntity’s resources.
Source§fn get_resource_uri(&self, resource_id: u16) -> UUri
fn get_resource_uri(&self, resource_id: u16) -> UUri
Gets a URI that represents a given resource of this uEntity.
Source§fn get_source_uri(&self) -> UUri
fn get_source_uri(&self) -> UUri
Gets the URI that represents the resource that this uEntity expects RPC responses and notifications to be sent to.