pub struct FakeUpCloud { /* private fields */ }Expand description
The in-process face. Build it with FakeUpCloud::over and hold the
result as an upcloud_api::UpCloudApi.
Implementations§
Source§impl FakeUpCloud
impl FakeUpCloud
Sourcepub fn over(mock: Arc<Mock>, credential: &str) -> Over<FakeUpCloud>
pub fn over(mock: Arc<Mock>, credential: &str) -> Over<FakeUpCloud>
The trait face over mock, presenting credential as its bearer.
If the mock has never been served on a socket, its import replies would
name a real-looking https://<zone>.img.upcloud.com/… upload URL; the
face gives the estate an in-process upload base instead, so a Rust
caller that FOLLOWS the URL it was answered (rather than building one)
lands back here. A served mock keeps its socket’s base.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FakeUpCloud
impl RefUnwindSafe for FakeUpCloud
impl Send for FakeUpCloud
impl Sync for FakeUpCloud
impl Unpin for FakeUpCloud
impl UnsafeUnpin for FakeUpCloud
impl UnwindSafe for FakeUpCloud
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