[−][src]Enum trawler::LobstersRequest
A single lobste.rs client request.
Note that one request may end up issuing multiple backend queries. To see which queries are executed by the real lobste.rs, see the lobste.rs source code.
Any request type that mentions an "acting" user is guaranteed to have the user
argument to
handle
be Some
.
Variants
Render the frontpage.
Render recently submitted stories.
Render recently submitted comments.
User(UserId)
Render a user's profile.
Note that the id here should be treated as a username.
Story(StoryId)
Render a particular story.
Log in the acting user.
Note that a user need not be logged in by a LobstersRequest::Login
in order for a
user-action (like LobstersRequest::Submit
) to be issued for that user. The id here should
be considered both a username and an id. The user with the username derived from this
id should have the given id.
Log out the acting user.
Have the acting user issue an up or down vote for the given story.
Note that the load generator does not guarantee that a given user will only issue a single vote for a given story, nor that they will issue an equivalent number of upvotes and downvotes for a given story.
Have the acting user issue an up or down vote for the given comment.
Note that the load generator does not guarantee that a given user will only issue a single vote for a given comment, nor that they will issue an equivalent number of upvotes and downvotes for a given comment.
Have the acting user submit a new story to the site.
Note that the generator dictates the ids of new stories so that it can more easily keep track of which stories exist, and thus which stories can be voted for or commented on.
Have the acting user submit a new comment to the given story.
Note that the generator dictates the ids of new comments so that it can more easily keep track of which comments exist for the purposes of generating comment votes and deeper threads.
Fields of Comment
Implementations
impl LobstersRequest
[src]
pub fn all() -> IntoIter<Discriminant<Self>>
[src]
Enumerate all possible request types in a deterministic order.
pub fn variant_name(v: &Discriminant<Self>) -> &'static str
[src]
Give a textual representation of the given LobstersRequest
discriminant.
Useful for printing the keys of the maps of histograms returned by run
.
pub fn describe(&self) -> String
[src]
Produce a textual representation of this request.
These are on the form:
METHOD /path [params] <user>
Where:
METHOD
isGET
orPOST
./path
is the approximate lobste.rs URL endpoint for the request.[params]
are any additional params to the request such as id to assign or associate a new resource with with.
Trait Implementations
impl Clone for LobstersRequest
[src]
fn clone(&self) -> LobstersRequest
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LobstersRequest
[src]
impl Eq for LobstersRequest
[src]
impl Hash for LobstersRequest
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for LobstersRequest
[src]
fn cmp(&self, other: &LobstersRequest) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<LobstersRequest> for LobstersRequest
[src]
fn eq(&self, other: &LobstersRequest) -> bool
[src]
fn ne(&self, other: &LobstersRequest) -> bool
[src]
impl PartialOrd<LobstersRequest> for LobstersRequest
[src]
fn partial_cmp(&self, other: &LobstersRequest) -> Option<Ordering>
[src]
fn lt(&self, other: &LobstersRequest) -> bool
[src]
fn le(&self, other: &LobstersRequest) -> bool
[src]
fn gt(&self, other: &LobstersRequest) -> bool
[src]
fn ge(&self, other: &LobstersRequest) -> bool
[src]
impl StructuralEq for LobstersRequest
[src]
impl StructuralPartialEq for LobstersRequest
[src]
Auto Trait Implementations
impl RefUnwindSafe for LobstersRequest
impl Send for LobstersRequest
impl Sync for LobstersRequest
impl Unpin for LobstersRequest
impl UnwindSafe for LobstersRequest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,