pub struct Server<'a> { /* private fields */ }
Expand description
Represents a server component under test.
Implementations§
Source§impl<'a> Server<'a>
impl<'a> Server<'a>
Sourcepub fn new(test_prefix: &str, path: &'a str) -> Self
pub fn new(test_prefix: &str, path: &'a str) -> Self
Create a new instance of a server component, passing in two string references: the name of
the test that created this component, and the path to the *.cm
file describing this
component in the current package:
Server::new(“my_test_case”, “#meta/some_server.cm”);
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Server<'a>
impl<'a> RefUnwindSafe for Server<'a>
impl<'a> Send for Server<'a>
impl<'a> Sync for Server<'a>
impl<'a> Unpin for Server<'a>
impl<'a> UnwindSafe for Server<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)